package com.liuning.service;

import com.liuning.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuning
 * @since 2022-03-24
 */
public interface SysUserService extends IService<SysUser> {
    //获取用户全部信息
    SysUser getByUsername(String username);

    //获取用户的角色和菜单编码
    String getUserAuthorityInfo(Long userId);

    //清除角色和权限信息
    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);
}
